<?php
// wv-3.3 (c) 2008 by Alexander Klein, akx@gmx.net
// Main page
class WV_MainPage
{
	private $mainPageFilename = '';  // HTML source file name
	
	// Constructor
	function __construct($filename) 
	{
		// set HTML file name
		$this->mainPageFilename = $filename;
	}
	
	// show main page
	public function showMainPage() 
	{
		// read main page HTML directly from external file
		$htmlFileHandler = fopen($this->mainPageFilename, 'r');
		echo fread($htmlFileHandler, filesize($this->mainPageFilename));
		fclose($htmlFileHandler);	
	}	
}
?>